package com.imooc.distributedemo.resume.thread;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.ThreadPoolExecutor.AbortPolicy;
import java.util.concurrent.TimeUnit;

public class ThreadPoolExecutorDemo {

    public static void main(String[] args) {
        ThreadPoolExecutor executor = new ThreadPoolExecutor(
                10,
                10,
                1L,
                TimeUnit.SECONDS,
                new LinkedBlockingDeque<>(10),
                new AbortPolicy()
        );
    }
}
